Code to Running Process

Parts of the system

../_images/Parts_of_the_system.png

Compiler

../_images/Compiler_Stages.png
  • C/C++ compiler
    • Front end
      • Parse command line
      • Finds header files
      • Expands all macros
      • Combines all headers and code file into one
      • Parses the combined file
    • Intermediate language
    • Target specific backend
    • Object file

Linker

  • Combines Multiple object files into executables or dynamically linked libraries
  • Resolves imports
  • Fixes up relocations
  • Reads ld file for memory allocation instructions and linker symbols
  • Produces exe or dynamic library

Kernel

Loader

Table Of Contents

Previous topic

Operating System Internals

Next topic

Translation Lookaside Buffer

This Page